//
//  UIColor+RGBValues.m
//  dielianw
//
//  Created by 刘威 on 16/8/9.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "UIColor+RGBValues.h"



@implementation UIColor (RGBValues)

#define UICOLOR_RGB_Alpha(_color,_alpha) [UIColor colorWithRed:((_color>>16)&0xff)/255.0f green:((_color>>8)&0xff)/255.0f blue:(_color&0xff)/255.0f alpha:_alpha]



+ (UIColor *)grayBackgroundColor
{
    return UICOLOR_RGB_Alpha(0xe6e6e6, 1);
}

+ (UIColor *)orangeNavControllerTintColor {
    return UICOLOR_RGB_Alpha(0xf58e56, 1);
}

+(UIColor *) randomColor
{
    CGFloat hue = ( arc4random() % 256 / 256.0 );
    CGFloat saturation = ( arc4random() % 128 / 256.0 ) + 0.5;
    CGFloat brightness = ( arc4random() % 128 / 256.0 ) + 0.5;
    return [UIColor colorWithHue:hue saturation:saturation brightness:brightness alpha:1];
}

+ (UIColor *)grayTitleColor {
    return UICOLOR_RGB_Alpha(0x333333, 1);
}

+ (UIColor *)contentColor {
    return UICOLOR_RGB_Alpha(0x666666, 1);
}

+ (UIColor *)redLogoColor {
    return UICOLOR_RGB_Alpha(0xeb2b4a, 1);
}

+ (UIColor *)grayTabColor {
    return UICOLOR_RGB_Alpha(0xbebebe, 1);
}

+ (UIColor *)blackNavControllerTitleColor {
    return UICOLOR_RGB_Alpha(0x666666, 1);
}

+ (UIColor *)cuttingLineColor {
    return UICOLOR_RGB_Alpha(0xe6e6e6, 1);
}

+ (UIColor *)refreshHeartColor {
    return UICOLOR_RGB_Alpha(0xf47ca7, 1);
}


+ (UIColor *)orangePromptColor {
    return UICOLOR_RGB_Alpha(0xf0731f, 1);
}

+ (UIColor *)greenSucceedColor {
    return UICOLOR_RGB_Alpha(0x5bfa65, 1);
}

+ (UIColor *)cellBackgroundColor {
    return UICOLOR_RGB_Alpha(0xf5f5f5, 1);
}

+ (UIColor *)grayTimeColor {
    return UICOLOR_RGB_Alpha(0xbebebe, 1);
}

+ (UIColor *)grayPromptColor {
    return UICOLOR_RGB_Alpha(0xb2b2b2, 1);
}

@end
